/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author XPF
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface SportsClassTeacerRelation extends BasicModel<SportsClassTeacerRelation> {
  relationId?: string; // 主键
  gradeName?: string; // 年级
  className?: string; // 班级
  sportsTeacher?: string; // 体育老师
  medicalTeacher?: string; // 医务老师
  isDelete?: string; // 删除标记
}

export const sportsClassTeacerRelationList = (params?: SportsClassTeacerRelation | any) =>
  defHttp.get<SportsClassTeacerRelation>({
    url: adminPath + '/sports/sportsClassTeacerRelation/list',
    params,
  });

export const sportsClassTeacerRelationListData = (params?: SportsClassTeacerRelation | any) =>
  defHttp.post<Page<SportsClassTeacerRelation>>({
    url: adminPath + '/sports/sportsClassTeacerRelation/listData',
    params,
  });

export const sportsClassTeacerRelationForm = (params?: SportsClassTeacerRelation | any) =>
  defHttp.get<SportsClassTeacerRelation>({
    url: adminPath + '/sports/sportsClassTeacerRelation/form',
    params,
  });

export const sportsClassTeacerRelationSave = (
  params?: any,
  data?: SportsClassTeacerRelation | any,
) =>
  defHttp.postJson<SportsClassTeacerRelation>({
    url: adminPath + '/sports/sportsClassTeacerRelation/save',
    params,
    data,
  });

export const sportsClassTeacerRelationDelete = (params?: SportsClassTeacerRelation | any) =>
  defHttp.get<SportsClassTeacerRelation>({
    url: adminPath + '/sports/sportsClassTeacerRelation/delete',
    params,
  });
